package com.zlc.workflow.core.instance.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Map;

/**
 * 流程事件参数
 */
@Getter
@Setter
public class EventParam {

    @ApiModelProperty(value = "事件类型 PROCESS_TERMINATION|TASK_ARRIVE|TASK_END_|TASK_BE_REJECT|REJECT_NOW_TASK")
    private String eventTime;

    @ApiModelProperty(value = "流程实例ID")
    private String processInstanceId;

    @ApiModelProperty(value = "流程ID")
    private String processId;

    @ApiModelProperty(value = "流程code")
    private String processCode;

    @ApiModelProperty(value = "是否第一个任务节点")
    private boolean isFirstTask;

    @ApiModelProperty(value = "节点ID")
    private String nodeId;

    @ApiModelProperty(value = "节点名称")
    private String nodeName;

    @ApiModelProperty(value = "节点类型")
    private String nodeType;

    @ApiModelProperty(value = "任务ID")
    private String taskId;

    @ApiModelProperty(value = "任务操作人")
    private String actorId;

    @ApiModelProperty(value = "任务操作人")
    private String actorName;

    @ApiModelProperty(value = "表单变量")
    private Map<String,Object> formData;

    @ApiModelProperty(value = "配置变量")
    private Map<String,String> variableConfigs;

}
